package com.cuit.service.impl;

import com.cuit.dao.IFileDao;
import com.cuit.domain.File;
import com.cuit.service.IFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class FileServiceImpl implements IFileService {
    @Autowired
    private IFileDao dao;

    @Override
    public List<File> ViewImage(int userId) {
        return dao.ViewImage(userId);
    }

    @Override
    public List<File> ViewVideo(int userId) {
        return dao.ViewVideo(userId);
    }

    @Override
    public List<File> ViewMusic(int userId) {
        return dao.ViewMusic(userId);
    }
}
